import ListItem from "./ListItem";

/**
 * 数字列表组件
 * @param {props} props 
 * @returns 
 */
export default function NumberList(props) {
    const numbers = props.numbers;
    const listItems = numbers.map((number) =>
        <ListItem key={number} value={number} />
    );
    return (
        <ul>{listItems}</ul>
    );
}